package com.conferenceroom.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.conferenceroom.dto.RoomSelect;
import com.conferenceroom.entity.Room;
import com.conferenceroom.vo.HourRoom;
import com.conferenceroom.vo.NowRoom;

import java.util.List;
import java.util.Map;

public interface RoomService extends IService<Room> {
//    List<Room> getAvailableRooms();
    List<Room> findAvailableRooms(RoomSelect roomSelect);

    IPage<Room> pageByCondition(IPage<Room> page, Room room);

    List<NowRoom> getCurrentRoomsStatus();

    List<HourRoom> getHourlyStatus(Integer roomId);

    List<Map<String, Object>> getRoomIdsByRoomName(String roomname);

    List<Room> listRoomsSortedByRating(String order);
}



